Skip to content

Adding article on jQuery widget method invocation. #417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

tjvantoll
Copy link
Member

This came up as part of jquery/api.jqueryui.com#164.

```
$( ".selector" )
.dialog( "isOpen" )
.css( "color", "red" );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about a line comment above the .css call, something like // this will throw a TypeError (or whatever it throws). That will make the issue more clear, since the two examples look very similar.

@jzaefferer
Copy link
Member

Apart from the line comment this looks good to me.

@tjvantoll
Copy link
Member Author

Good call. It is a TypeError. Updated.

@jzaefferer
Copy link
Member

👍

Feel free to land this.

@tjvantoll
Copy link
Member Author

Landed in 4cf8c56.

@tjvantoll tjvantoll closed this Sep 12, 2013
@scottgonzalez
Copy link
Member

Shouldn't this mention that invoking most methods directly on the instance will return undefined?

@tjvantoll
Copy link
Member Author

@scottgonzalez Yeah probably. How about this - #431?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants